package com.sinbader.xiaole.common.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;


@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("warehouse_move")
@ApiModel(value="WarehouseMove对象", description="仓库移货管理")
public class WarehouseMove implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "移货单号：自动生成")
    @TableField("move_num")
    private String moveNum;

    @ApiModelProperty(value = "移货日期")
    @TableField("move_date")
    private Date moveDate;

    @ApiModelProperty(value = "分店id")
    @TableField("shop_id")
    private Long shopId;

    @ApiModelProperty(value = "移货数量")
    @TableField("move_total_count")
    private Integer moveTotalCount;

    @ApiModelProperty(value = "移货总金额")
    @TableField("move_total_amt")
    private BigDecimal moveTotalAmt;

    @ApiModelProperty(value = "移货项数(种类)")
    @TableField("move_type_count")
    private Integer moveTypeCount;

    @ApiModelProperty(value = "移货类型：0：同价移货，1：调拨移货")
    @TableField("move_type")
    private Integer moveType;

    @ApiModelProperty(value = "审核状态：0 已审核 1 未审核")
    @TableField("audit_status")
    private Integer auditStatus;

    @ApiModelProperty(value = "移入仓库id")
    @TableField("move_in_warehouse")
    private Long moveInWarehouse;

    @ApiModelProperty(value = "移出仓库id")
    @TableField("move_out_warehouse")
    private Long moveOutWarehouse;

    @ApiModelProperty(value = "备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty(value = "经手人id")
    @TableField("handle_user")
    private Long handleUser;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "创建人id")
    @TableField(value = "create_user", fill = FieldFill.INSERT)
    private Long createUser;

    @ApiModelProperty(value = "审核人id")
    @TableField("audit_user")
    private Long auditUser;

    @ApiModelProperty(value = "审核时间")
    @TableField("audit_time")
    private Date auditTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "打印时间")
    @TableField("print_time")
    private Date printTime;

    @ApiModelProperty(value = "更新人id")
    @TableField(value = "update_user", fill = FieldFill.UPDATE)
    private Long updateUser;

    @ApiModelProperty(value = "默认为0,1为删除")
    @TableField("is_delete")
    private Integer isDelete;

    @ApiModelProperty(value = "用户类型")
    @TableField("user_type")
    private String userType;


}
